home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
Source
/
DBL Pascal Library
/
LayerMgr
/
Re Layer Manager?
< prev
next >
Wrap
Text File
|
1993-02-22
|
2KB
|
56 lines
Tuesday, February 23, 1993 1:28:13 AM
Message
From: Rick Holzgrafe,rmh@taligent.com,Internet
Subject: Re: Layer Manager?
To: David B. Lamkins
In article <1993Feb22.034718.161750@fourd.com>, David_B._Lamkins@fourd.com
writes:
>
> Has anyone successfully used the Layer Manager interface (posted a while back
> by Michael Hecht) to _hide_ a process? I've had no problems inquiring about
> the visibility, but whenever I try to hide a process' layer (using the layer
equivalents
> of HideWindow or HideShowWindow) I seem to get memory writes to places they
> shouldn't go -- in the middle of some Finder code on my system...
I haven't tried to use the layer manager. Anything that's that complex and
undocumented is either too flaky to be used except in certain careful ways, or
is expected to change significantly in future system releases.
If you can be happy with the options presented by the Application menu (I can
think of cases where you wouldn't), you can "Hide This App" or "Hide Others"
with a single line of code. In C:
SystemMenu (0xBF970001); // Hide This App
SystemMenu (0xBF970002); // Hide Others
SystemMenu is documented in IM Vol. I as the way the system handles Desk
Accessory menus. It has been expanded to handle the System 7 system menus as
well, but that fact is not documented. This method, therefore, can fail if Apple
changes the behavior of SystemMenu, or the menu ID of the Application menu, or
the order of items in the Application menu.
Hope this helps.
-- Rick Holzgrafe
Semicolon Software
rmh@taligent.com
------ Internet Message Header Follows ------
From rmh@taligent.com Mon Feb 22 16:26:00 1993
Received: from taligent.com by uu5.psi.com (5.65b/4.0.071791-PSI/PSINet) via SMTP;
id AA19415 for David_B._Lamkins; Mon, 22 Feb 93 16:26:00 -0500
Received: from rick-holzgrafe.taligent.com by taligent.com with SMTP (5.67/23-Oct-1991-eef)
id AA09063; Mon, 22 Feb 93 13:23:24 -0800
for
Date: Mon, 22 Feb 93 13:23:24 -0800
Message-Id: <9302222123.AA09063@taligent.com>
From: rmh@taligent.com (Rick Holzgrafe)
To: David_B._Lamkins@fourd.com
Subject: Re: Layer Manager?
Organization: Semicolon Software